package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel.completeRFCSubs.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.model.User;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel.CompleteRFCPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.completeRFCPanel.completeRFCSubs.ChooseCompleteRFCDialog;

public class LoadOpenRFCListener implements ActionListener{
	
	private User user;
	private CompleteRFCPanel completeRFCPanel;
	
	public LoadOpenRFCListener(CompleteRFCPanel completeRFCPanel){
		
		this.user = completeRFCPanel.getMainframe().getSignedInUser();
		this.completeRFCPanel = completeRFCPanel;
	}

	@Override
	public void actionPerformed(ActionEvent e) {

		new ChooseCompleteRFCDialog(completeRFCPanel, user);
	}

}
